package com.ruoyi.project.xkx.school.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;

/**
 * 所授课程类型对象 xkx_course
 *
 * @author ..
 * @date 2021-05-13
 */
public class XkxCourse {
  private static final long serialVersionUID = 1L;

  /**
   * 课程id 主键
   */
  private Integer courseId;

  /**
   * 课程编号
   */
  @Excel(name = "课程编号")
  private String courseNumber;

  /**
   * 课程名称
   */
  @Excel(name = "课程名称")
  private String courseName;

  /**
   * 课时
   */
  @Excel(name = "课时")
  private Integer courseHour;

  /**
   * 到期时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date coursePeriod;

  /**
   * 备注
   */
  @Excel(name = "备注")
  private String courseNote;

  private Double coursePrice;

  public Double getCoursePrice() {
    return coursePrice;
  }

  public void setCoursePrice(Double coursePrice) {
    this.coursePrice = coursePrice;
  }

  public void setCourseId(Integer courseId) {
    this.courseId = courseId;
  }

  public Integer getCourseId() {
    return courseId;
  }

  public String getCourseNumber() {
    return courseNumber;
  }

  public void setCourseNumber(String courseNumber) {
    this.courseNumber = courseNumber;
  }

  public void setCourseName(String courseName) {
    this.courseName = courseName;
  }

  public String getCourseName() {
    return courseName;
  }

  public void setCourseHour(Integer courseHour) {
    this.courseHour = courseHour;
  }

  public Integer getCourseHour() {
    return courseHour;
  }

  public void setCoursePeriod(Date coursePeriod) {
    this.coursePeriod = coursePeriod;
  }

  public Date getCoursePeriod() {
    return coursePeriod;
  }

  public void setCourseNote(String courseNote) {
    this.courseNote = courseNote;
  }

  public String getCourseNote() {
    return courseNote;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
        .append("courseId", getCourseId())
        .append("courseNumber", getCourseNumber())
        .append("courseName", getCourseName())
        .append("courseHour", getCourseHour())
        .append("coursePeriod", getCoursePeriod())
        .append("courseNote", getCourseNote())
        .append("coursePrice",getCoursePrice())
        .toString();
  }
}
